package com.demo.controller;

import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author codor
 * @date 2022/4/9 16:09
 */
@RestController
@RequestMapping("/demo")
public class TestController {

    @RequestMapping("/time")
    public String time() {
        return DateUtil.now();
    }
}
